package com.baic.ibase.service.users;

import com.baic.ibase.models.dao.Users;
import com.baic.ibase.models.req.common.ApiResponse;
import com.baic.ibase.models.req.common.PageResponse;
import com.baic.ibase.models.req.users.CreateUserReq;
import com.baic.ibase.models.req.users.ListUsersByPageReq;
import com.baic.ibase.models.vo.UserInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface UsersService extends IService<Users> {

    ApiResponse<PageResponse<Users>> listUsersByPage(ListUsersByPageReq req);

    ApiResponse< Users> saveUsers(CreateUserReq req);

    ApiResponse<UserInfo> getInfoByToken(String token);
}
